package com.cssl.controller;


import com.cssl.domain.DtsGroupOnRules;
import com.cssl.openFeign.GrouponRulesClient;

import com.cssl.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/promotion")
public class DtsGrouponRulesController {
    @Autowired
    private GrouponRulesClient getGrouponRulesList;

    @PostMapping("/listGroupon")
    public Result getGrouponRulesList(@RequestBody DtsGroupOnRules dto) {


        return getGrouponRulesList.getGrouponRulesList(dto);

    }
}
